<template>
  <div>
    <el-input :placeholder="data" v-model="answer" @input="changeAnswer"></el-input>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      default: ""
    }
  },
  data () {
    return {
      answer : ""
    }
  },
  methods: {
    changeAnswer(){
      this.$emit('answerChange',this.answer)
    }
  },
  computed: {
  }
}
</script>
